package com.bjx.system.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.bjx.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @desc: 角色数据实体
 * @author: liushuai
 * @date: 2022/10/11
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_role")
@Schema(title = "Role",description = "角色")
public class RoleEntity extends BaseEntity {
      /**
      * 角色ID
      */
      @TableId(type = IdType.AUTO)
      @Schema(title = "roleId",description = "角色ID")
      private  Long roleId; 
      
      /**
      * 角色名称
      */
      @Schema(title = "roleName",description = "角色名称")
      private  String roleName; 
      
      /**
      * 是否启用(1:是/2:否)
      */
      @Schema(title = "enabled",description = "是否启用(1:是/2:否)")
      private  Short enabled; 
      
      /**
      * 角色编号
      */
      @Schema(title = "roleCode",description = "角色编号")
      private  String roleCode; 
      
      /**
      * 顺序字段
      */
      @Schema(title = "orderNum",description = "顺序字段")
      private  Integer orderNum; 
      
}